package com.desire.homework;

import java.util.Calendar;

/**
 * @author desire
 */
public class _07_输出什么年$节日 {
    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();
        //指定年分
        calendar.set(2008, Calendar.NOVEMBER, 1);

        int m = calendar.get(Calendar.MONTH);
        int d = calendar.get(Calendar.DATE);
        System.out.println(m);
        System.out.println(d);
        if (m == 10 && d == 1) {
            System.out.println("国庆节");
        }
        int day = calendar.get(Calendar.YEAR);
        System.out.println("猴鸡狗猪鼠牛虎兔龙蛇马羊".charAt(day % 12));
    }

}
